module.exports = {
    publicPath: '/',
    outputDir: 'dist',
    assetsDir: 'static',
    productionSourceMap: false,
    //修改项目标题
    chainWebpack: config => {
        config
            .plugin('html')
            .tap(args => {
                args[0].title = '房产交易平台';
                return args
            })
    },
    //跨域代理服务
    devServer: {
        port: 80,
        open: true,
        proxy: {
            '/api': {
                target: 'http://localhost:8080/',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
};
